.class public Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;
.super Landroid/app/Activity;
.source "TetheringProvisionActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/tecace/tetheringprovision/TetheringProvisionActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "ShowVerifyingDialogATT"
.end annotation


# instance fields
.field private final VerifyingBroadcastReceiver:Landroid/content/BroadcastReceiver;

.field private VerifyingDialog:Landroid/app/ProgressDialog;

.field private WaitingDialog:Landroid/app/ProgressDialog;

.field private mMessageReceived:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 747
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 748
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->mMessageReceived:Z

    .line 807
    new-instance v0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT$1;

    invoke-direct {v0, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT$1;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;)V

    iput-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingBroadcastReceiver:Landroid/content/BroadcastReceiver;

    .line 747
    return-void
.end method

.method static synthetic access$0(Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 748
    iput-boolean p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->mMessageReceived:Z

    return-void
.end method

.method static synthetic access$1(Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 749
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$2(Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 750
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->WaitingDialog:Landroid/app/ProgressDialog;

    return-object v0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 753
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 756
    invoke-virtual {p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v2, 0x80

    invoke-virtual {v1, v2}, Landroid/view/Window;->addFlags(I)V

    .line 758
    const-string v1, "TetheringProvision"

    const-string v2, "onCreate on ShowVerifyingDialogATT"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 759
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "com.tecace.tetheringprovision.action.closevfdialog"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 760
    .local v0, mVerifyingIntentFilter:Landroid/content/IntentFilter;
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingBroadcastReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 762
    new-instance v1, Landroid/app/ProgressDialog;

    invoke-direct {v1, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    .line 763
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    const v2, 0x7f030002

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 764
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v5}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 765
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v4}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 766
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    const v2, 0x7f030007

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT$2;

    invoke-direct {v3, p0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT$2;-><init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;)V

    invoke-virtual {v1, v2, v3}, Landroid/app/ProgressDialog;->setButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 775
    new-instance v1, Landroid/app/ProgressDialog;

    invoke-direct {v1, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->WaitingDialog:Landroid/app/ProgressDialog;

    .line 776
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->WaitingDialog:Landroid/app/ProgressDialog;

    const v2, 0x7f030001

    invoke-virtual {p0, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 777
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->WaitingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v5}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 778
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->WaitingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v4}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 780
    const-string v1, "TetheringProvision"

    const-string v2, "Show the VerifyingDialog.."

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 781
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1}, Landroid/app/ProgressDialog;->show()V

    .line 782
    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .prologue
    .line 797
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 798
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    .line 799
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->WaitingDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    .line 800
    iget-object v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->VerifyingBroadcastReceiver:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 801
    iget-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->mMessageReceived:Z

    if-eqz v0, :cond_0

    .line 802
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->mMessageReceived:Z

    .line 804
    :cond_0
    const-string v0, "TetheringProvision"

    const-string v1, "onDestroy on ShowVerifyingDialogATT"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 805
    return-void
.end method

.method protected onStop()V
    .locals 2

    .prologue
    .line 786
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    .line 787
    iget-boolean v0, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->mMessageReceived:Z

    if-nez v0, :cond_0

    invoke-static {}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$19()Landroid/os/PowerManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/os/PowerManager;->isScreenOn()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 788
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.tecace.tetheringprovision.action.closevfdialog"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;->sendBroadcast(Landroid/content/Intent;)V

    .line 789
    const-string v0, "TetheringProvision"

    const-string v1, "onStop in ShowVerifyingDialogATT"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 793
    :goto_0
    return-void

    .line 791
    :cond_0
    const-string v0, "TetheringProvision"

    const-string v1, "skip the sendBroadcast(INTENTFILTERCLOSEVFDIALOG) function cause the screen is currently off"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method
